﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LPMEDEditor
{
    public partial class MenuControl : UserControl
    {
        LPMEDEditor.Factory factory;
        public MenuControl(LPMEDEditor.Factory factory)
        {
            this.factory = factory;
            InitializeComponent();

            this.redoToolStripMenuItem.Click += new EventHandler(factory.redoToolStripMenuItem_Click);
            this.undoToolStripMenuItem.Click += new EventHandler(factory.undoToolStripMenuItem_Click);
            this.findToolStripMenuItem.Click += new EventHandler(factory.findToolStripMenuItem_Click);
            this.replaceToolStripMenuItem.Click += new EventHandler(factory.replaceToolStripMenuItem_Click);
            this.findInFilesToolStripMenuItem.Click += new EventHandler(factory.findInFilesToolStripMenuItem_Click);
            this.replaceInFilesToolStripMenuItem.Click += new EventHandler(factory.replaceInFilesToolStripMenuItem_Click);
            this.cutToolStripMenuItem.Click += new EventHandler(factory.cutToolStripMenuItem_Click);
            this.copyToolStripMenuItem.Click += new EventHandler(factory.copyToolStripMenuItem_Click);
            this.pasteToolStripMenuItem.Click += new EventHandler(factory.pasteToolStripMenuItem_Click);
            this.selectAllToolStripMenuItem.Click += new EventHandler(factory.selectAllToolStripMenuItem_Click);
            //TODO:
            //this.findAndReplaceStripMenuItem.Click += new EventHandler(factory.findAndReplaceStripMenuItem_Click);
            this.goToToolStripMenuItem.Click += new EventHandler(factory.goToToolStripMenuItem_Click);

            //TODO:
            //this.bookmarksToolStripMenuItem.Click += new EventHandler(factory.bookmarksToolStripMenuItem_Click);
            this.toggleBookmarkToolStripMenuItem.Click += new EventHandler(factory.toggleBookmarkToolStripMenuItem_Click);
            this.previosBookmarkToolStripMenuItem.Click += new EventHandler(factory.previosBookmarkToolStripMenuItem_Click);
            this.nextBookmarkToolStripMenuItem.Click += new EventHandler(factory.nextBookmarkToolStripMenuItem_Click);
            this.clearBookmarsToolStripMenuItem.Click += new EventHandler(factory.clearBookmarsToolStripMenuItem_Click);
            //TODO:
            //this.dropMarkersToolStripMenuItem.Click += new EventHandler(factory.dropMarkersToolStripMenuItem_Click);
            this.dropToolStripMenuItem.Click += new EventHandler(factory.dropToolStripMenuItem_Click);
            this.collectToolStripMenuItem.Click += new EventHandler(factory.collectToolStripMenuItem_Click);
            //TODO:
            //this.advancedToolStripMenuItem.Click += new EventHandler(factory.advancedToolStripMenuItem_Click);
            this.makeUpperCaseToolStripMenuItem.Click += new EventHandler(factory.makeUpperCaseToolStripMenuItem_Click);
            this.makeLowerCaseToolStripMenuItem.Click += new EventHandler(factory.commentStreamToolStripMenuItem_Click);
            this.commentStreamToolStripMenuItem.Click += new EventHandler(factory.commentStreamToolStripMenuItem_Click);
            this.commentLineToolStripMenuItem.Click += new EventHandler(factory.commentLineToolStripMenuItem_Click);
            this.uncommentLineToolStripMenuItem.Click += new EventHandler(factory.uncommentLineToolStripMenuItem_Click);
            //TODO:
            //this.autocompleteToolStripMenuItem.Click += new EventHandler(factory.autocompleteToolStripMenuItemClick);
            //TODO:
            //this.snippetsToolStripMenuItem.Click += new EventHandler(factory.snippetsToolStripMenuItem_Click);

            this.insertSnippetToolStripMenuItem.Click += new EventHandler(factory.insertSnippetToolStripMenuItem_Click);
            this.surroundWithToolStripMenuItem.Click += new EventHandler(factory.surroundWithToolStripMenuItem_Click);
            this.whiteSpaceToolStripMenuItem.Click += new EventHandler(factory.whiteSpaceToolStripMenuItem_Click);
            this.wordWrapToolStripMenuItem.Click += new EventHandler(factory.wordWrapToolStripMenuItem_Click);
            this.endOfLineToolStripMenuItem.Click += new EventHandler(factory.endOfLineToolStripMenuItem_Click);
            this.zoomInToolStripMenuItem.Click += new EventHandler(factory.zoomInToolStripMenuItem_Click);
            this.zoomOutToolStripMenuItem.Click += new EventHandler(factory.zoomOutToolStripMenuItem_Click);
            this.resetZoomToolStripMenuItem.Click += new EventHandler(factory.resetZoomToolStripMenuItem_Click);
            this.lineNumbersToolStripMenuItem.Click += new EventHandler(factory.lineNumbersToolStripMenuItem_Click);
            this.foldLevelToolStripMenuItem.Click += new EventHandler(factory.foldLevelToolStripMenuItem_Click);
            this.unfoldLevelToolStripMenuItem.Click += new EventHandler(factory.unfoldLevelToolStripMenuItem_Click);
            this.foldAllToolStripMenuItem.Click += new EventHandler(factory.foldAllToolStripMenuItem_Click);

            this.unfoldAllToolStripMenuItem.Click += new EventHandler(factory.unfoldAllToolStripMenuItem_Click);
            this.navigateForwardToolStripMenuItem.Click += new EventHandler(factory.navigateForwardToolStripMenuItem_Click);
            this.navigateBackwardToolStripMenuItem.Click += new EventHandler(factory.navigateBackwardToolStripMenuItem_Click);
        }
    }
}
